class Response {

  static Success(data: any) {
    return {
      success: true,
      data
    };
  }

  static Error(errorCode: number, errorMessage: any) {
    return {
      success: false,
      errorCode,
      errorMessage
    };
  }
}

export default Response;
